<% HttpSession httpSession = request.getSession();
   Employee employee = (Employee)session.getAttribute("user");
   if(employee == null || employee.getRole()== null){
   	response.sendRedirect("errorLogin.jsp");
   }
 
%>
<%@ page import="com.msti.entity.Student"%>
<%@ page import="java.util.*"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="com.msti.entity.Employee"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
	List<Student> allUnConStudent = new ArrayList<Student>();
	allUnConStudent = (List<Student>) request.getAttribute("allUnConStudent");
	request.getSession().setAttribute("allUnConStudent",allUnConStudent);
	if(allUnConStudent != null){
	Iterator<Student> iterator = allUnConStudent.iterator();
	int i =0;
	while(iterator.hasNext()){		
%>

<a href="studentDetail.jsp?i=<%=i %>"><%= iterator.next().getFullName() %></a>
<br/>
<% ++i;
	}
	} 
%>
<a href="logout.do">logout</a>
</body>
</html>